﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="GamerZ._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">



    <asp:GridView Width="1000px" ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="Gamerz_ID" DataSourceID="SqlDataSource1" AllowSorting="True">
    <Columns>
        <asp:HyperLinkField DataNavigateUrlFields="Gamerz_ID" 
            DataNavigateUrlFormatString="Details.aspx?Game={0}" DataTextField="Gamerz_Name" 
            HeaderText="Game Name" SortExpression="Gamerz_ID" ></asp:HyperLinkField>
        <asp:BoundField DataField="User_ID" HeaderText="Added By" 
            SortExpression="User_ID" />
        <asp:BoundField DataField="Gamerz_Publisher" HeaderText="Publisher" 
            SortExpression="Gamerz_Publisher" />
        <asp:BoundField DataField="Gamerz_Graphics" HeaderText="Graphics" 
            SortExpression="Gamerz_Graphics" />
        <asp:BoundField DataField="Gamerz_date" HeaderText="Date" 
            SortExpression="Gamerz_date" />
        <asp:ImageField DataImageUrlField="GamerZ_Image" 
            DataImageUrlFormatString="/Images/{0}" HeaderText="Thumbnail" SortExpression="GamerZ_Image">
            <ControlStyle CssClass="Thumbnail" /><ControlStyle />
        </asp:ImageField>
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
    
        SelectCommand="SELECT [Gamerz_ID], [Gamerz_Name], [User_ID], [Gamerz_Image], [Gamerz_Publisher], [Gamerz_Overview], [Gamerz_Graphics], [Gamerz_date] FROM [GamerZ] ">
    <SelectParameters>
    </SelectParameters>
</asp:SqlDataSource>
    <br />

</asp:Content>
